from app.server.flask_app.admin_views import MyBaseModelView


class CategoryModelView(MyBaseModelView):

    column_list = (
        "id",
        "name",
        "name_eng",
        "price_4h",
        "price_1d",
        "price_1w",
        "price_2w",
        "price_1m",
        "sites",
        "orders",
    )

    column_searchable_list = ("name", "name_eng")

    column_filters = (
        "name",
        "price_4h",
        "price_1d",
        "price_1w",
        "price_2w",
        "price_1m",
    )

    column_editable_list = column_filters
